
local Entity =  BaseClass()


--基本场景对象
function Entity:__init(vo)
	self.obj_type =nil
	self.vo = vo
	self.gameObj=nil
end

function Entity:__delete()
	
end

--[[异步加载
local path = AssetUtils.GetPrefabPath("cube")
	-- local AssetLoadFinish = function (obj)
		
	-- 	self.gameObj = GameObject.Instantiate(obj)

	-- 	CS.UtilsCSharp.AddOnCollider(self.gameObj,function (collider)
			

	-- 		print(collider.name)
	-- 	end)
	-- end
	-- ResMgr:GetInstance():LoadPrefabAsset(path,AssetLoadFinish)]]

function Entity:Init()
	
	-- 

end


function Entity:Update(deltaTime)
	if self.gameObj == nil then
		 return
	end
	self.gameObj.transform.position = self.gameObj.transform.position+self.gameObj.transform.forward*Time.deltaTime
end

return Entity
